package asteroids.model.programs.parsing.expressions;

public abstract class MathematicalExpression extends UnaryExpression {

	protected MathematicalExpression(E expression) {
		super(expression);
		canHaveAsMathematicalExpression(expression);
	}

	public boolean canHaveAsMathematicalExpression(E expression){
		return expression.isDouble() || expression.isString();
	}

	public boolean isDouble(){
		return true;
	}
	public boolean isBoolean(){
		return false;
	}
	public boolean isEntity(){
		return false;
	}
	public boolean isString(){
		return false;
	}
}

